package com.pyue.eam.admin.api.entity.regi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pyue.eam.admin.api.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 任务消息
 *
 * @date 2023-11-17 15:34:32
 */
@Data
@TableName("cq_task_msg")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "任务消息")
public class CqTaskMsgEntity extends BaseEntity {

	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	private Long id;

	/**
	 * 任务 id
	 */
	@Schema(description = "任务 id")
	private Long taskId;

	/**
	 * 内容
	 */
	@Schema(description = "内容")
	private String message;

	/**
	 * 头像
	 */
	@Schema(description = "头像")
	private String userAvatar;

	/**
	 * 1表示自已发的
	 */
	@TableField(exist = false)
	@Schema(description = "1表示自已发的 2表示别人发的")
	private String selfFlag = "2";

	/**
	 * 文件
	 */
	@Schema(description = "文件")
	private Integer fileId;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

	/**
	 * 用户名称
	 */
	@Schema(description = "用户名称")
	private String realName;

}
